<template>
  <keep-alive :include="cachedViews">
    <router-view ref="child" />
  </keep-alive>
</template>

<script>
export default {
  name: 'ParentView',
  computed: {
    cachedViews() {
      return ['ParentView', ...this.$store.state.tagsView.cachedViews]
    },
    key() {
      return this.$route.path
    }
  }
}
</script>
